package cn.yunhe.entity.merchantsentity;

import lombok.Data;

import java.io.Serializable;

/**
 * 李非凡
 * 食物实体类
 */
@Data
public class Food implements Serializable {
    private int fid;
    private String name;
    //食物图片
    private String pic;
    //食物价格
    private String price;
    //类别
    private Type type;
    //销量
    private int sales;
    //食物所属的商家的外键
    private MerchantsData merData;

    public Food() {
    }

    public Food(int fid, String name, String pic, String price, Type type, MerchantsData merData) {
        this.fid = fid;
        this.name = name;
        this.pic = pic;
        this.price = price;
        this.type = type;
        this.merData = merData;
    }

    public Food(int fid, String name, String pic, String price, Type type, int sales, MerchantsData merData) {
        this.fid = fid;
        this.name = name;
        this.pic = pic;
        this.price = price;
        this.type = type;
        this.sales = sales;
        this.merData = merData;
    }
}
